﻿#ifndef __FORWARD_FROM_BASE_SVC_FORWARD_FROM_BASE_HEAD__
#define __FORWARD_FROM_BASE_SVC_FORWARD_FROM_BASE_HEAD__

#include "rpc/rpc_service.h"  // for CRpcService

class CAsioServer;

// forward_from_base.proto
// Cell服务,处理Base转发的RPC.
class CSSvcForwardFromBase final : public CRpcService
{
public:
	explicit CSSvcForwardFromBase(CAsioServer& rServer);

public:
	std::string GetServiceName() const override
	{
		return "svr.ForwardFromBase";
	}

private:
	void Forward(const CRpcCallContext& ctx, const std::string& sContent);

private:
	CAsioServer& m_rServer;
};  // class CSSvcForwardFromBase

#endif  // __FORWARD_FROM_BASE_SVC_FORWARD_FROM_BASE_HEAD__
